From: kaf24@firebug.cl.cam.ac.uk Date: Fri, 27 Jan 2006 11:48:32 +0000 (+0100) Subject: Need to include module.h to get EXPORT_SYMBOL macros. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16523^2^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=12f38d5421259e8ee304f933e359698a3ecf67ae;p=xen.git Need to include module.h to get EXPORT_SYMBOL macros. Export xen driver util functions with GPL tag. Signed-off-by: Keir Fraser --- diff --git a/linux-2.6-xen-sparse/drivers/xen/util.c b/linux-2.6-xen-sparse/drivers/xen/util.c index 41e5e94193..1b8c91bc1e 100644 --- a/linux-2.6-xen-sparse/drivers/xen/util.c +++ b/linux-2.6-xen-sparse/drivers/xen/util.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -31,7 +32,7 @@ struct vm_struct *alloc_vm_area(unsigned long size) return area; } -EXPORT_SYMBOL(alloc_vm_area); +EXPORT_SYMBOL_GPL(alloc_vm_area); void free_vm_area(struct vm_struct *area) { @@ -40,7 +41,7 @@ void free_vm_area(struct vm_struct *area) BUG_ON(ret != area); kfree(area); } -EXPORT_SYMBOL(free_vm_area); +EXPORT_SYMBOL_GPL(free_vm_area); void lock_vm_area(struct vm_struct *area) { @@ -60,13 +61,13 @@ void lock_vm_area(struct vm_struct *area) for (i = 0; i < area->size; i += PAGE_SIZE) (void)__get_user(c, (char __user *)area->addr + i); } -EXPORT_SYMBOL(lock_vm_area); +EXPORT_SYMBOL_GPL(lock_vm_area); void unlock_vm_area(struct vm_struct *area) { preempt_enable(); } -EXPORT_SYMBOL(unlock_vm_area); +EXPORT_SYMBOL_GPL(unlock_vm_area); /* * Local variables: